// 自定义错误类型
class BadRequestError extends Error{
    constructor(message){
        super(message)
        this.name = 'BadRequestError'
    }
}

class UnauthorizedError extends Error{
    constructor(message){
        super(message)
        this.name = 'UnauthorizedError'
    }
}

class NotFoundError extends Error {
    constructor(message){
        super(message)
        this.name = 'NotFoundError'
    }
}

module.exports = {
    BadRequestError,
    UnauthorizedError,
    NotFoundError
}